package cn.tedu._05mvcboot01.controller;

import cn.tedu._05mvcboot01.pojo.dto.BMIControllerDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class BMIController {



    @RequestMapping("/v1/bmi")
    @ResponseBody
    public String aaa(BMIControllerDTO bmiControllerDTO){
        double height = bmiControllerDTO.getHeight();
        double weight = bmiControllerDTO.getWeight();
        return bmiControllerDTO.bmi();
    }
}
